package com.chenyue.cm.match.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 参赛员分配
 * </p>
 *
 * @author Lbx
 * @since 2021-09-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "JdMatchLiveUser对象", description = "参赛员分配")
public class JdMatchLiveUser extends Model<JdMatchLiveUser> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "赛事id")
    private Integer matchId;

    @ApiModelProperty(value = "赛程id")
    private Integer formatId;

    @ApiModelProperty(value = "直播记录id")
    private Integer liveRecordId;

    @ApiModelProperty(value = "团队/个人 id")
    private Integer userId;

    @ApiModelProperty(value = "参赛类型 1个人2团队")
    private Integer type;

    @ApiModelProperty(value = "团队id")
    private Integer groupId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
